﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Axis.Dao.Research;
using Axis.BusinessObject.Research;
using Axis.Web.Administrator.Global;

namespace Axis.Web.Administrator.Views.Lottory
{
    public partial class index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            CResearchDao CResearch = new CResearchDao();
            IList<CProject> listProject = CResearch.GetProject(string.Format("<InputValue UserID='{0}' SecrectToken='{1}'/>", CSecurity.USER_ID, CSecurity.SECRECT_TOKEN));
            ddlProjectList.DataSource = listProject;
            ddlProjectList.DataTextField = "Name";
            ddlProjectList.DataValueField = "ID";
            ddlProjectList.Items.Insert(0, new ListItem("(...)", "0"));
            ddlProjectList.DataBind();
        }
    }
}